<template>
  <div class="herin-loading">
    <div class="icon el-icon-loading" />
    <div class="text">数据加载中</div>
  </div>
</template>

<script>
export default {
  name: 'Loading',
  components: {},
  data() {
    return {
    };
  },
  computed: {},
  watch: {},
  mounted() {},
  methods: {}
};
</script>

<style lang="scss" scoped>
.herin-loading{
  position: absolute;
  top: 0rem;
  left: 0rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba($color: #000000, $alpha: 0.3);
  opacity: 1;
  transition: all 600ms;
  z-index: 1000;
  &.close{
    opacity: 0;
    display: none;
  }
  .icon{
    // width: 15%;
    text-align: center;
    color: #d8d8d8;
    font-size: 2rem;
  }
  .text{
    margin-top: .5rem;
    text-align: center;
    color: #d8d8d8;
  }
}
</style>
